package com.woniuxy.io.dir;

import java.io.File;

/**
 * description: DirDemo02 <br>
 * date: 2022/2/4 9:57 下午 <br>
 * author: shesaifei <br>
 * version: 1.0 <br>
 */
public class DirDemo02 {

    public static void main(String[] args) {
        File dir = new File("/Users/shesaifei/Downloads/sringboot-vue01/");

        String[] subNames = dir.list();
//        for (String s : subNames) {
//
//            System.out.println(s);
//        }

        File[] subFiles = dir.listFiles();
        for (File file : subFiles) {
            System.out.println(file.getAbsolutePath());
        }
    }
}
